package service;

import com.github.pagehelper.PageInfo;
import entity.Resource;
import exception.ServiceException;
import vo.ResourceVo;

public interface ResourceService {


    //添加视频资源
    boolean addFrontResource(Resource resource) throws ServiceException;

    PageInfo<Resource> queryResource(Integer pageNo, ResourceVo resource);

    boolean modifyFrontResource(Resource resource)throws ServiceException;

    boolean removeFrontResource(Integer id) throws ServiceException;

    Resource selectById(int id) throws ServiceException;

    int selectClickCountById(int id) throws ServiceException;

    Boolean updateClickCountById(int id,int click_count) throws ServiceException;
}
